package com.af.monitorModule.generator.service;

import com.af.monitorModule.generator.entity.Monitor;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyz_4dou
 * @since 2021-02-23
 */
@Component
public interface MonitorService extends IService<Monitor> {

    JSONObject findMonitor(String page,String limit,String search);

    JSONObject changeState(String id);

    JSONObject batchStop(JSONObject ids);

    JSONObject updateMonitor(Monitor monitor,String id);

    JSONObject add(Monitor monitor);

    JSONObject getAllMonitorName();

    JSONObject switchAdd(JSONObject monitors);
}
